package top.yoahh.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.yoahh.annotation.Dict;

/**
 * <p>
 * 系统设置-日志表
 * </p>
 *
 * @author hjx
 * @since 2022-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysLog对象", description="系统设置-日志表")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**主键*/
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**日志类型（字典项）*/
    @ApiModelProperty(value = "日志类型（字典项）")
    @Dict(dicCode = "log_type")
    private String logType;

    /**日志内容*/
    @ApiModelProperty(value = "日志内容")
    private String logContent;

    /**操作类型*/
    @ApiModelProperty(value = "操作类型")
    private String operateType;

    /**操作用户ID*/
    @ApiModelProperty(value = "操作用户ID")
    private String userId;

    /**操作用户名称*/
    @ApiModelProperty(value = "操作用户名称")
    private String username;

    /**操作IP*/
    @ApiModelProperty(value = "操作IP")
    private String ip;

    /**请求方法*/
    @ApiModelProperty(value = "请求方法")
    private String method;

    /**请求URL*/
    @ApiModelProperty(value = "请求URL")
    private String requestUrl;

    /**请求参数*/
    @ApiModelProperty(value = "请求参数")
    private String requestParam;

    /**请求类型*/
    @ApiModelProperty(value = "请求类型")
    private String requestType;

    /**耗时*/
    @ApiModelProperty(value = "耗时")
    private Long costTime;

    /**创建时间*/
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**修改时间*/
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**修改人*/
    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**逻辑删除（1：已删除，0：未删除）*/
    @ApiModelProperty(value = "逻辑删除（1：已删除，0：未删除）")
    private Boolean flag;


}
